package errcode

var (
	Success                   = NewError(0, "成功")
	ServerError               = NewError(10000000, "服务内部错误")
	InvalidParams             = NewError(10000001, "入参错误")
	NotFound                  = NewError(10000002, "找不到")
	UnauthorizedAuthNotExist  = NewError(10000003, "鉴权失败，找不到对应的 AppKey 和 AppSecret")
	UnauthorizedTokenError    = NewError(10000004, "鉴权失败，Token 错误")
	UnauthorizedTokenTimeout  = NewError(10000005, "鉴权失败，Token 超时")
	UnauthorizedTokenGenerate = NewError(10000006, "鉴权失败，Token 生成失败")
	TooManyRequests           = NewError(10000007, "请求过多")
	ToLogin                   = NewError(10000008, "请登录")

	ParamErrCode = NewError(400, "参数错误")

	ErrorGetAuthorListFail     = NewError(20010001, "获取作者列表失败")
	ErrorMember                = NewError(30000000, "获取用户信息失败")
	ErrorMemberLogin           = NewError(50000001, "用户登陆失败")
	ErrorMemberLoginPwdErr     = NewError(50000002, "密码验证失败")
	ErrorMemberLoginCaptchaErr = NewError(50000003, "验证码验证失败")
	NotPermissions             = NewError(40000001, "权限不足")
)
